Conversation
…_콜백_api_개발_필요 AI서버 장소추출 구현완료에 따른 콜백 api 개발 필요
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
WalkthroughAI 콜백 기능을 강화하기 위해 도메인 모델(AiCallbackRequest, Place, Content)을 확장하고 콜백 처리 로직을 재구성했습니다. 또한 Git 워크트리 관리 자동화 도구와 관련 문서를 추가하며, GitHub Actions 워크플로우를 교체하고 버전 정보를 업데이트했습니다. Changes
Sequence DiagramsequenceDiagram
actor ExternalAI as External AI System
participant ACS as AiCallbackService
participant PPR as PlacePlatformReferenceRepository
participant PR as PlaceRepository
participant CR as ContentRepository
participant DB as Database
ExternalAI->>ACS: POST /ai-callback (SnsInfoCallback, PlaceDetailCallback)
activate ACS
alt SUCCESS Case
ACS->>PPR: findByPlacePlatformAndPlacePlatformId(NAVER, naverId)
alt PlacePlatformReference exists
PPR-->>ACS: Existing Reference
ACS->>PR: findById(placeId)
PR-->>ACS: Existing Place
else PlacePlatformReference not found
ACS->>PR: findByNameAndCoordinates()
alt Place found by name/coords
PR-->>ACS: Existing Place
else Place not found
ACS->>PR: save(createNewPlace)
PR->>DB: INSERT Place
DB-->>PR: Place with ID
PR-->>ACS: New Place
end
end
ACS->>ACS: updatePlaceFromPlaceDetail(place, placeDetail)
ACS->>PR: save(updated place)
PR->>DB: UPDATE Place with new fields
ACS->>PPR: save(PlacePlatformReference)
PPR->>DB: INSERT/UPDATE PlacePlatformReference
ACS->>ACS: updateContentWithSnsInfo(content, snsInfo)
ACS->>CR: save(updated content)
CR->>DB: UPDATE Content with SNS metadata
ACS->>ACS: logStatistics(extractionStatistics)
else FAILED Case
ACS->>ACS: processFailedCallback(errorMessage)
end
ACS-->>ExternalAI: Callback Response
deactivate ACS
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 분 Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
|
✅ 변경사항이 자동으로 deploy 브랜치에 적용되었습니다. PR을 수동으로 닫아주세요. |
Summary by CodeRabbit
릴리스 노트
새로운 기능
개선 사항
✏️ Tip: You can customize this high-level summary in your review settings.